<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<?php include('include/include_link.php');?> 

<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>engine1/style.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/style-fiche-cli-2.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/style.css" />
<script type="text/javascript" src="<?php echo base_url();?>engine1/jquery.js"></script>
</head>

<body class="ficheclinique listeclinique position">
<?php include('include/variable_session.php');?>    
        <div class="main_container">
	<div id="wraper"> 
            
            <div class="devis retour">
            <div class="indice red">
            	<a href="#" title="walkdentalcare.com" title="walkdentalcare">
                	<span>&lt;</span>
                    <strong>Retour à la LISTE</strong>
                </a>
            </div>
        </div>
    	<div class="devis">
        	<span>Gerer mes demandes de DEVIS</span>
            <div class="indice red">
            	<a href="#" title="walkdentalcare.com" title="walkdentalcare">
                	<span>10</span>
                    <strong>Devis envoyés</strong>
                </a>
            </div>
            <div class="indice red">
            	<a href="#" title="walkdentalcare.com" title="walkdentalcare">
                	<span>2</span>
                    <strong>Devis reçus</strong>
                </a>
            </div>
            <div class="indice green">
            	<a href="#" title="walkdentalcare.com" title="walkdentalcare">
                	<span>3</span>
                    <strong>Crédits</strong>
                </a>
            </div>
            <div class="indice green">
            	<a href="#" title="walkdentalcare.com" title="walkdentalcare">
                	<span>10</span>
                    <strong>Cliniques séléctionnées</strong>
                </a>
            </div>
        </div>
            
            <?php include('include/header.php');?>  
            <!-- debut content -->
            <div class="page sizing">            	
                <div class="titre">                	
                </div>
                <div class="clear"></div>
                <!--liste debut-->
                <?php
                foreach ($result as $key => $list) {
                $lg = $_SESSION['lg'];
                $pays = $this->mod_clinic->getPaysClinic($list['ID_PAYS']);
                $ville = $this->mod_clinic->getVilleClinic($list['ID_VILLE']);
                $nom_cli = $list['NOM_CLI'];
                $nom_url = $list['NOM_URL'];
                echo "<div class='liste'>";
                echo "<div class='pull-left photo'>";
                echo "<a href='' title='Chrysanthemum'>";
                echo "<img src='".base_url()."images/photo/dentist_explain.jpg' title='' alt='' />";
                echo "</a>";
                echo "</div>";
                echo "<div class='pull-right Infos'>";
                echo "<div class='logoclin'>";
                echo "<a href='index.html' title='accueil'>";
                echo "<img src='".base_url()."images/photo/logo01.png' title='partenaire' alt='walkdentalcare' />";
                echo "</a>";
                echo "</div>";
                echo "<h2 class='nomclinic'><a href='".$pays."/".$ville."/".$nom_url."'>".$nom_cli."</a>";
                echo "<a class='' href='".base_url()."' title='partenaire'>";
                if($list['PARTNER']==1){
                echo "<img src='".base_url()."images/photo/partenaire.png' title='partenaire' alt='walkdentalcare' />";
                }
                echo "</a>";
                echo "<span class='pays'>";
                echo "<a href='".base_url().$lg."/cliniques-dentaires/".$pays."'>".$pays."</a>";
                echo "<span> </span>";
                echo "<a href='".base_url().$lg."/cliniques-dentaires/".$pays."/".$ville."'>".$ville."</a>";
                echo "</span>";
                echo"</h2>";
                echo "<a class='pull-right' href='index.html' title='accueil'>Selectionner cette clinique</a>";
                echo "<div class='clear liner'></div>";
                echo "<div class='sizing mod_inscription_clinique pull-left coordonnees travel'>";
                echo "<h2><span class='title-insript-clinique'>";
                echo "<strong> ".$list['IMPLANT']." </strong> €";
                echo "</span></h2>";
                echo "<a href='index.html' title='accueil'>Implant dentaire</a>";
                echo "</div>";
                echo "<div class='sizing mod_inscription_clinique pull-left coordonnees travel'>";
                echo "<h2><span class='title-insript-clinique'>";
                echo "<strong> ".$list['COURONE']." </strong> €";
                echo "</span></h2>";
                echo "<a href='index.html' title='accueil'>Couronne dentaires</a>";
                echo "</div>";
                echo "<p>";
                $id_last_com = $this->mod_clinic->getIdLastComment($list['ID_CLI']);
                $last_com= $this->mod_clinic->getLastComment($id_last_com);
                if(strlen($last_com)>120){
                echo substr($last_com,0, 120);
                echo "<br /><a href='".base_url().$lg."/cliniques-dentaires/".$pays."/".$ville."/".$nom_url."'>Lire la Suite</a>";
                } else {
                    echo $last_com;
                }
                echo "</p>";
                echo "<div class='clear'></div>";
                echo "<div class='comment'>";
                echo "<a href='".base_url().$lg."/cliniques-dentaires/".$pays."/".$ville."/".$nom_url."' title='commentaire'>";
                echo $this->mod_clinic->getNbComment($list['ID_CLI']);
                echo " Comentaires</a>";
                echo "<a class='rate' href='#' title='acceuil'></a>";
                echo "<a class='rate' href='#' title='acceuil'></a>";
                echo "<a class='rate' href='#' title='acceuil'></a>";
                echo "</div>";
                echo "</div>";
                echo "<div class='clear'></div>";
                echo "</div>";
                } 
                ?>     
                </div>               
                <!--Liste Fin-->
                <div class="pagination">
                    <?php
                    echo $this->pagination->create_links();
                    ?>
                </div>
                <br />
                
			</div>
            <!--fin content-->

        </div>
            <?php include('include/footer.php'); ?>
        </div>
        <script type="text/javascript" src="<?php echo base_url(); ?>engine1/wowslider.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>engine1/script.js"></script>
</body>
</html>
